home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / dosutils / tsbat50.zip / PATH.TXT < prev    next >
Text File  |  1996-04-28  |  1KB  |  30 lines

  1.  Q: How can I make really long paths?
  2.  
  3.  A: A simple trick to beat the 127 character limitation on the path.
  4. Use the subst command to cut down the length of the directory
  5. entries in the path statement. For example if your path is
  6.  path=...;c:\box\boxtools;...
  7. put in
  8.  subst t: c:\box\boxtools
  9.  path=...;t:\;...
  10. If you use this trick, also put lastdrive=z in your config.sys file.
  11.  
  12.  A2: But the question also arises why should you need long paths in
  13. the first place. The usual need arises from the fact that many
  14. programs require adding some directory to the path. Thus the length
  15. of the path grows if the user tries to put each and every addition
  16. to the path. This is not necessary. The alternative is to use a
  17. batch to call the program adding the path only for the duration of
  18. the operation. For example
  19.   set _path=%path%
  20.   path=%path%;c:\telec\kermi
  21.   mskermit
  22.   path=%_path%
  23.   set _path=
  24.  
  25. ....................................................................
  26. Prof. Timo Salmi   Co-moderator of news:comp.archives.msdos.announce
  27. Moderating at ftp:// & http://garbo.uwasa.fi archives  193.166.120.5
  28. Department of Accounting and Business Finance  ; University of Vaasa
  29. ts@uwasa.fi http://uwasa.fi/~ts BBS 961-3170972; FIN-65101,  Finland
  30.